package top.yueyazhui.mysql_audit_log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 审计日志对象
 * </p>
 *
 * @author yueyazhui
 * @since 2022-09-25
 */
@TableName("audit_log_objs")
public class AuditLogObjs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 审计日志ID
     */
    private String auditLogId;

    /**
     * 数据库
     */
    private String db;

    /**
     * 名称
     */
    private String name;

    /**
     * 对象类型
     */
    private String objType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getAuditLogId() {
        return auditLogId;
    }

    public void setAuditLogId(String auditLogId) {
        this.auditLogId = auditLogId;
    }
    public String getDb() {
        return db;
    }

    public void setDb(String db) {
        this.db = db;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getObjType() {
        return objType;
    }

    public void setObjType(String objType) {
        this.objType = objType;
    }

    @Override
    public String toString() {
        return "AuditLogObjs{" +
            "id=" + id +
            ", auditLogId=" + auditLogId +
            ", db=" + db +
            ", name=" + name +
            ", objType=" + objType +
        "}";
    }
}
